function getSession() {
    $.ajax({
            type: "post",
            //后端需要调用的地址
            url: "http://" + getUserHost() + "/user/author",
            dataType: "json",
            headers: {
                "token": token,
            },
            // contentType: "json/application",
            //设置超时
            timeout: 10000,
            async: true,
            success: function(response) {
                console.log(response);
                if (response.code == "200") {
                    sessionStorage.setItem("user", response.user);
                    window.location.reload();
                } else {
                    return 500;
                }
            },
            error: function(data) {
                return 500;
            }
        });
}